home *** CD-ROM | disk | FTP | other *** search
- GETARG(3F) Last changed: 1-8-99
-
-
- NNAAMMEE
- ggeettaarrgg, iiaarrggcc - Return Fortran command-line argument
-
- SSYYNNOOPPSSIISS
- ssuubbrroouuttiinnee ggeettaarrgg((_i,, _c))
- cchhaarraacctteerr**NN _c
- iinntteeggeerr**44 _i
- iinntteeggeerr**44 ffuunnccttiioonn iiaarrggcc(())
- iinntteeggeerr _j
- ccaallll ggeettaarrgg((_i,, _c))
- _j == iiaarrggcc(())
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- ggeettaarrgg returns the _i-th command-line argument of the current process.
-
- iiaarrggcc returns the index of the last argument.
-
- For example, if a program were invoked using the following command:
-
- foo arg1 arg2 arg3
-
- ggeettaarrgg((22,, cc)) returns the string aarrgg22 in the character variable _c.
-
- iiaarrggcc returns 3 as the value of the function call.
-
- NNOOTTEESS
- The compiler expects the existence of a Fortran MMAAIINN__ program when
- these functions are used.
-
- SSEEEE AALLSSOO
- ggeettoopptt(3C)
-
- This man page is available only online.
-